package org.example.todo.service;

import org.example.todo.entity.TodoEntity;
import org.example.todo.model.Result;

import java.util.List;

public interface TodoService {
    Result<List<TodoEntity>> queryAll();

    Result<TodoEntity> queryById(Long id);

    Result<?> addTodo(TodoEntity todoEntity);

    Result<?> deleteTodo(Long id);

    Result<?> updateTodo(TodoEntity todoEntity);
}
